package com.qmerak.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * @author shaohong.cheng
 * @date 2013-4-11
 */
public class OrgEntity {
	private String id;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	private String parentid = "";

	/**
	 * @return the parentid
	 */
	public String getParentid() {
		return parentid;
	}

	/**
	 * @param parentid
	 *            the parentid to set
	 */
	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	private String unionName;

	/**
	 * @return the unionName
	 */
	public String getUnionName() {
		return unionName;
	}

	/**
	 * @param unionName
	 *            the unionName to set
	 */
	public void setUnionName(String unionName) {
		this.unionName = unionName;
	}

	private String unionCode;

	/**
	 * @return the unionCode
	 */
	public String getUnionCode() {
		return unionCode;
	}

	/**
	 * @param unionCode
	 *            the unionCode to set
	 */
	public void setUnionCode(String unionCode) {
		this.unionCode = unionCode;
	}

	private String province;

	/**
	 * @return the province
	 */
	public String getProvince() {
		return province;
	}

	/**
	 * @param province
	 *            the province to set
	 */
	public void setProvince(String province) {
		this.province = province;
	}

	private String city;

	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param city
	 *            the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	private String setupDate;

	/**
	 * @return the setupDate
	 */
	public String getSetupDate() {
		return setupDate;
	}

	/**
	 * @param setupDate
	 *            the setupDate to set
	 */
	public void setSetupDate(String setupDate) {
		this.setupDate = setupDate;
	}

	private String officeSite;

	/**
	 * @return the officeSite
	 */
	public String getOfficeSite() {
		return officeSite;
	}

	/**
	 * @param officeSite
	 *            the officeSite to set
	 */
	public void setOfficeSite(String officeSite) {
		this.officeSite = officeSite;
	}

	private String tel;

	/**
	 * @return the tel
	 */
	public String getTel() {
		return tel;
	}

	/**
	 * @param tel
	 *            the tel to set
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}

	private String fax;

	/**
	 * @return the fax
	 */
	public String getFax() {
		return fax;
	}

	/**
	 * @param fax
	 *            the fax to set
	 */
	public void setFax(String fax) {
		this.fax = fax;
	}

	private String email;

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	private String remark;

	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}

	/**
	 * @param remark
	 *            the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * 下一级机构
	 */
	private List<OrgEntity> lowerLevels = new ArrayList<OrgEntity>();

	public List<OrgEntity> getLowerLevels() {
		return lowerLevels;
	}

	public void addLowerLevel(OrgEntity entity) {
		lowerLevels.add(entity);
	}

	/**
	 * 机构成员
	 */
	private List<MemberEntity> members = new ArrayList<MemberEntity>();

	public List<MemberEntity> getMembers() {
		return members;
	}

	public void addMember(MemberEntity memberEntity) {
		members.add(memberEntity);
	}

	public void setMembers(List<MemberEntity> entities) {
		members = entities;
	}

	private String orgGrade;

	/**
	 * @return the orgGrade
	 */
	public String getOrgGrade() {
		return orgGrade;
	}

	/**
	 * @param orgGrade the orgGrade to set
	 */
	public void setOrgGrade(String orgGrade) {
		this.orgGrade = orgGrade;
	}
}
